package com.ihomey.linkuphome.util;

/**
 * Created by Administrator on 2016/10/23.
 */

public class StringUtil {

    public static String digitToString(int digit) {
        if (digit < 10) {
            return "0" + String.valueOf(digit);
        } else {
            return String.valueOf(digit);
        }
    }

    public static boolean inStringArray(String s, String[] array) {
        for (String x : array) {
            if (x.equals(s)) {
                return true;
            }
        }
        return false;
    }
}
